package com.qqtech.qquan.user.enums;

public enum UserTopicStatusDictEnum {
	/**
	 * 状态CircleTopicStatusEnum:1-正常;2-删除
	 */
	NORMAL(1), DELETE(2);
	int code;

	UserTopicStatusDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		UserTopicStatusDictEnum[] arrEnum = UserTopicStatusDictEnum.values();
		for (UserTopicStatusDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
